<template>
  <!-- 组件的结构 -->
  <div class="demo">
    <h2>姓名:{{ studentName }}</h2>
    <h2>年龄:{{ age }}</h2>
  </div>
</template>
<script>
//组件的交互
export default {
  name: 'Student',
  data() {
    return {
      studentName: '李四',
      age: 18,
    }
  },
}
</script>

<style scoped>
/* 组件的样式 */
.demo {
  background-color: antiquewhite;
}
</style>
